﻿// JSON C# Class Generator
// http://at-my-window.blogspot.com/?page=json-class-generator

using System;
using Newtonsoft.Json.Linq;
using BuscoPre;

namespace BuscoPre.Repository.MLA.JsonTypes
{

    public class Paging
    {

        private JObject __jobject;
        public Paging(JObject obj)
        {
            this.__jobject = obj;
        }

        public int Total
        {
            get
            {
                return JsonClassHelper.ReadInteger(JsonClassHelper.GetJToken<JValue>(__jobject, "total"));
            }
        }

        public int Offset
        {
            get
            {
                return JsonClassHelper.ReadInteger(JsonClassHelper.GetJToken<JValue>(__jobject, "offset"));
            }
        }

        public int Limit
        {
            get
            {
                return JsonClassHelper.ReadInteger(JsonClassHelper.GetJToken<JValue>(__jobject, "limit"));
            }
        }

    }
}
